/*
 * Created on Nov 3, 2003
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.recruiter.struts;


import org.apache.log4j.Logger;
import org.vectrics.hibernate.ThreadProperties;
import org.vectrics.recruiter.config.RecruitConfig;
import org.vectrics.struts.Request;
import org.vectrics.user.web.struts.UserProfileForm;


public class RecruitUserProfileForm extends UserProfileForm {
	
	public static final long serialVersionUID = 890002472124L;
	
	private final Logger log = Logger.getLogger(this.getClass());
	private boolean lookingFullTime;
	private boolean lookingPartTime;
	private boolean lookingPermanent;
	private boolean lookingContract;
	private boolean currentlyWorking;
	private boolean okToContact;
	private int travelPercent = 0;
	private boolean activeCandidate = true;
	private String careerGoals = null;
	private String highestEducationCode = null;
	private String sector1Code = null;
	private String sector2Code = null;
	private String sector3Code = null;
	private String jobFunction1Code = null;
	private String jobFunction2Code = null;
	private String jobFunction3Code = null;
		
	public RecruitUserProfileForm() {
		super();
		log.info("RecruitUserProfileForm() constructor");
	}
	
	protected void onError(Request request) {
	}
	
	
	protected boolean getUserNameRequired() {
		return(true);
	}

	protected boolean getNewUserNameRequired() {
		return(false);
	}

	protected boolean getNameRequired() {
		return(false);
	}

	protected boolean getPasswordRequired() {
		return(false);
	}
	
	protected boolean getEmailRequired() {
		return(true);
	}
	/**
	 * @return
	 */
	public boolean getLookingContract() {
		return lookingContract;
	}

	/**
	 * @param lookingContract
	 */
	public void setLookingContract(boolean lookingContract) {
		this.lookingContract = lookingContract;
	}

	/**
	 * @return
	 */
	public boolean getLookingFullTime() {
		return lookingFullTime;
	}

	/**
	 * @param lookingFullTime
	 */
	public void setLookingFullTime(boolean lookingFullTime) {
		this.lookingFullTime = lookingFullTime;
	}

	/**
	 * @return
	 */
	public boolean getLookingPartTime() {
		return lookingPartTime;
	}

	/**
	 * @param lookingPartTime
	 */
	public void setLookingPartTime(boolean lookingPartTime) {
		this.lookingPartTime = lookingPartTime;
	}

	/**
	 * @return
	 */
	public boolean getLookingPermanent() {
		return lookingPermanent;
	}

	/**
	 * @param lookingPermanent
	 */
	public void setLookingPermanent(boolean lookingPermanent) {
		this.lookingPermanent = lookingPermanent;
	}
	/**
	 * @return
	 */
	public int getTravelPercent() {
		return travelPercent;
	}

	/**
	 * @param travelPercent
	 */
	public void setTravelPercent(int travelPercent) {
		this.travelPercent = travelPercent;
	}

	/**
	 * @return
	 */
	public boolean getActiveCandidate() {
		return activeCandidate;
	}

	/**
	 * @param activeCandidate
	 */
	public void setActiveCandidate(boolean activeCandidate) {
		this.activeCandidate = activeCandidate;
	}

	/**
	 * @return Returns the currentlyWorking.
	 */
	public boolean getCurrentlyWorking() {
		return currentlyWorking;
	}
	/**
	 * @param currentlyWorking The currentlyWorking to set.
	 */
	public void setCurrentlyWorking(boolean currentlyWorking) {
		this.currentlyWorking = currentlyWorking;
	}
	/**
	 * @return Returns the okToContact.
	 */
	public boolean getOkToContact() {
		return okToContact;
	}
	/**
	 * @param okToContact The okToContact to set.
	 */
	public void setOkToContact(boolean okToContact) {
		this.okToContact = okToContact;
	}
	protected boolean getPasswordHintRequired() {
		return(RecruitConfig.getRecruitInstance().getAllowPasswordEmail(ThreadProperties.getDomain()));
	}

	protected boolean getCompanyRequired() {
		return(false);
	}


	public String getCareerGoals() {
		return careerGoals;
	}


	public void setCareerGoals(String careerGoals) {
		this.careerGoals = careerGoals;
	}


	public String getHighestEducationCode() {
		log.info("getHighestEducationCode()=" + this.highestEducationCode);
		return highestEducationCode;
	}


	public void setHighestEducationCode(String highestEducationCode) {
		this.highestEducationCode = highestEducationCode;
		log.info("setHighestEducationCode()=" + this.highestEducationCode);
	}


	public String getJobFunction1Code() {
		return jobFunction1Code;
	}


	public void setJobFunction1Code(String jobFunction1Code) {
		this.jobFunction1Code = jobFunction1Code;
	}


	public String getJobFunction2Code() {
		return jobFunction2Code;
	}


	public void setJobFunction2Code(String jobFunction2Code) {
		this.jobFunction2Code = jobFunction2Code;
	}


	public String getJobFunction3Code() {
		return jobFunction3Code;
	}


	public void setJobFunction3Code(String jobFunction3Code) {
		this.jobFunction3Code = jobFunction3Code;
	}


	public String getSector1Code() {
		return sector1Code;
	}


	public void setSector1Code(String sector1Code) {
		this.sector1Code = sector1Code;
	}


	public String getSector2Code() {
		return sector2Code;
	}


	public void setSector2Code(String sector2Code) {
		this.sector2Code = sector2Code;
	}


	public String getSector3Code() {
		return sector3Code;
	}


	public void setSector3Code(String sector3Code) {
		this.sector3Code = sector3Code;
	}

	
}
